package java69.work722.CarManager;

import java.util.Scanner;

public class CarManager {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("======================================");
        System.out.println("欢迎使用本公司的租车系统");
        System.out.println("======================================");
        System.out.println("请选择车型（1 轿车 ， 2 客车）：");
        int i =sc.nextInt();
        if (i != 1 && i != 2){
            System.out.println("请正确输入!");
        }else {
            System.out.println("请输入车牌号:");
            String num = sc.next();
            System.out.println("请输入租赁时长:");
            int days = sc.nextInt();
            CarBusiness carBusiness = new CarBusiness();
            carBusiness.car(i,num,days);
        }
    }
}
